package com.hdu.heihei;

import com.hdu.heihei.beans.User;
import com.hdu.heihei.service.impl.UserServiceImpl;
import com.hdu.heihei.dao.impl.UserDaoImpl;
import org.junit.Test;



/**
 * @author fengyuan
 */
public class UserDaoImplTest {

    UserDaoImpl userDaoImpl = new UserDaoImpl();
    UserServiceImpl userServiceImpl = new UserServiceImpl();

    @Test
    public void TestCheck() {
        User user = new User();
        user.setId(6);
        user.setUsername("haha");
        user.setPassword("111");

//        Assert.assertTrue(userDaoImpl.check(userBean));
    }

    @Test
    public void login() {
        User user = new User();
        user.setId(6);
        user.setUsername("haha");
        user.setPassword("111");

//        Assert.assertNotNull(userDaoImpl.login(userBean));
    }

}
